package com.resou.reader.data.tinder;

import com.resou.reader.api.entry.Result;
import com.resou.reader.api.entry.ResultList;
import com.resou.reader.data.tinder.tinder.CartBook;
import com.resou.reader.data.tinder.tinder.SlideBean;

import io.reactivex.Observable;

/**
 * Created by ${Garrett} on 2018/11/22.
 * Contact me krouky@outlook.com
 */
public interface TinderDataSource {
    Observable<ResultList<SlideBean>> getSlideList(int page, String token, String deviceId);

    Observable<Result<String>> delete(String token, String bookIdStr);

    Observable<Result> addToShoppingCart(String bookIds, String token);

    Observable<Result<String>> getCartCount(String token);

    int getLocalCartCount();

    Observable<ResultList<CartBook>> getCartBookListAll(String token);

    Observable<ResultList<CartBook>> getCartBookListByPage(String token);
}
